<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="java.sql.*"%>
<%@ page import="packaging.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'see.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
		<link rel="stylesheet" type="text/css" href="css/indexcss.css">

  </head>
  
  <body>
  <div id="s2">
			<table width="950px" border="0">
				<tr>
					<td width="172" rowspan="2">
						<img src="img/logo.png" width="159" height="85px" />
					</td>
					<td width="395" height="76">
						<p>
							您好!
							<%
						if (session.getAttribute("USER") == null) {
					%>
							<a href="lp.jsp">请登录</a>
												<%
						} else {
					%>

					<a href="buy.jsp">  <%
 	out.print(session.getAttribute("USER"));}
 	if(session.getAttribute("numb")==null){
 	out.print("");} 
 	else{
 	out.print("你的购物车共有"+session.getAttribute("numb")+"件商品");
 	
 	}
 	
 %>
					</a>
						</p>
						<p>
							<span style="color: #FF9966; font-size: 15px"> </span><span
								style="color: #FF9966; font-size: 15px"> 全场购物免配送费! </span>
						</p>
					</td>
					<td width="369" style="color: #FF9966; font-size: 15px">
						<form id="form1" name="form1" method="post" action="check.jsp">

							<input type="text" name="con" id="" size="18" />


							<input type="submit" name="button" id="button" value="搜索"
								style="background: #F6F6F6;" />

						</form>
					</td>
				</tr>
				<tr>
					<td height="15" style="color: #004B91; font-weight: bold">
						我的START SHOES | 礼品卡
					</td>
					<td style="color: #004B91;">
						我的帐户 | 新手上路 | 帮助
					</td>
				</tr>
			</table>
			<ul style="background-image: url(img/title.jpg)">
				<li><a href="index.jsp">
					首页
					</a>
				</li>
				<li>
					品牌馆
				</li>
				<li>
					男鞋
				</li>
				<li>
					女鞋
				</li>

			</ul>
		</div>
  
   <%String id=request.getParameter("id");
   String sql="select * from imp where p_id="+id;
   check see=new check();
   ResultSet rs=see.indexs(sql);
   if(rs.next()){
   
   %>
   <div>
<table width="919" border="1">
  <tr>
    <td width="92" height="65"><div align="center">商品名称</div></td>
    <td width="154"><div align="center"><%=rs.getString("p_name") %></div></td>
    <td width="405" rowspan="3"><img  src="<%=rs.getString("p_img") %>"/></td>
    <td width="122" height="40"><img  src="img/zhengpinbaozheng.jpg"/></td>
  </tr>
  <tr>
    <td height="63"><div align="center">商品原价</div></td>
    <td><div align="center"><%=rs.getString("p_oldprice") %></div></td>
    <td width="122" height="40"><img  src="img/mianfeipeisong.jpg" width="122" height="40"/></td>
  </tr>
  <tr>
    <td height="83"><div align="center">商品现价</div></td>
    <td><div align="center"><%=rs.getString("p_newprice") %></div></td>
    <td width="122" height="40"><img  src="img/wuliyoutuihuan.jpg"/></td>
  </tr>
</table>
<p align="center"><a href="#"><img  src="img/buy_it_now.jpg" style="border:#FFFFFF 1px solid"/></a>　　<a href="car.jsp?id=<%=rs.getString("p_id") %>"><img  src="img/put_shoppingcart.jpg" style="border:#FFFFFF 1px solid" /></a></p>
</div>
   <%} %>
   
  </body>
</html>
